package com.litong.litongjiaoyu.config.dao;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @ClassName WebSocketStompConfig
 * @Description websocket连接配置类
 * @Author jingz
 * @Date 2020/1/24 19:02
 * @Version 1.0
 **/

@Configuration
@EnableWebSocket
public class WebSocketStompConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
